//
//  CalculateWayCell.m
//  YunGou
//
//  Created by macbook on 16/6/12.
//  Copyright © 2016年 macbook. All rights reserved.
//

#import "CalculateWayCell.h"
#import "NSString+DateTransform.h"

@interface CalculateWayCell ()
@property (weak, nonatomic) IBOutlet UILabel *date;
@property (weak, nonatomic) IBOutlet UILabel *time;
@property (weak, nonatomic) IBOutlet UILabel *data;
@property (weak, nonatomic) IBOutlet UILabel *user;
@end

@implementation CalculateWayCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setCalculateModel:(CalculateWayModel *)calculateModel{
    _date.text = [NSString timeTransformWithString:calculateModel.ri_qi andFormatter:@"yyyy-MM-dd"];
    _time.text = [NSString timeTransformWithString:calculateModel.shi_jian andFormatter:@"HH:mm:ss"];
    _date.text = calculateModel.shu_ju;
    _user.text = calculateModel.username;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
